﻿//-----------------------------------------------------------------------
// <copyright file="Repository.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : qinchaoyue
// * FileName: Repository.cs
// * history : created by qinchaoyue 2017-10-16 03:27:13
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;

namespace Slwy.Dal
{
    using Slwy.Core.Data;
    public class Repository<T> : IRepository<T> where T : class
    {
        private readonly IDal<T> _dal;

        public int Insert(T entity)
        {
            return this._dal.Insert(entity);
        }

        public int Update(T entity)
        {
            return this._dal.Update(entity);
        }

        public int Recycle(T entity)
        {
            return this._dal.Recycle(entity);
        }
    }
}
